/**
 * @author Administrator
 */
$(function(){
	$("#form").attr("action","/forum/members/smsList/smscompose");
	$("#_method").val("POST");
	   $("#form").validate({
        errorPlacement: function(error, element){
            error.appendTo(element.parent());
        },
        rules: {
			"users":{
				required: true
			},
            "subject":{
                required: true
            },
            "message":{
				required: true,
				maxlength:200
			}
        },
        messages: {
			"users": {
				required: "用户名不得为空"
			},
			"subject": {
				required: "主题不得为空"
			},
			"message": {
				required: "消息不得为空",
				maxlength: "消息长度不得超过200"
			}
		}
    });
});
